package com.icost.directive.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author lujianwen@wsyxmall.com
 * @since 2025-08-27 11:05
 */
@AllArgsConstructor
@Getter
public enum ProductEnum {
    MANUAL_BILL(1,"手动记账","发货信息"),
    AUTO_BILL(2,"自动记账","发货信息"),
    XHS_REMOVE_MARK(3,"小红书去水印","发货信息");
    final Integer id;
    final String desc;
    final String msgTpl;
    public static String getMsg(Integer productId){
        for (ProductEnum productEnum :ProductEnum.values() ){
            if(productEnum.getId().equals(productId)){
                return productEnum.getMsgTpl();
            }
        }
        return "";
    }
}
